/**
 */
package ConnectorGenerator.DRD.impl;

import ConnectorGenerator.Auxiliary.AuxiliaryPackage;

import ConnectorGenerator.Auxiliary.impl.AuxiliaryPackageImpl;

import ConnectorGenerator.CommunicationStyle.CommunicationStylePackage;

import ConnectorGenerator.CommunicationStyle.impl.CommunicationStylePackageImpl;

import ConnectorGenerator.ConnectorArchitecture.ConnectorArchitecturePackage;

import ConnectorGenerator.ConnectorArchitecture.impl.ConnectorArchitecturePackageImpl;

import ConnectorGenerator.ConnectorGeneratorPackage;

import ConnectorGenerator.DRD.Allocation;
import ConnectorGenerator.DRD.Component;
import ConnectorGenerator.DRD.ComponentAllocation;
import ConnectorGenerator.DRD.Connector;
import ConnectorGenerator.DRD.ConnectorEndpoint;
import ConnectorGenerator.DRD.DRDDocument;
import ConnectorGenerator.DRD.DRDFactory;
import ConnectorGenerator.DRD.DRDPackage;
import ConnectorGenerator.DRD.Dock;
import ConnectorGenerator.DRD.DockCapability;
import ConnectorGenerator.DRD.FeatureAnd;
import ConnectorGenerator.DRD.FeatureInSet;
import ConnectorGenerator.DRD.FeatureOr;
import ConnectorGenerator.DRD.FeatureRequirement;
import ConnectorGenerator.DRD.Interface;
import ConnectorGenerator.DRD.InterfaceKind;

import ConnectorGenerator.ElementArchitecture.ElementArchitecturePackage;

import ConnectorGenerator.ElementArchitecture.impl.ElementArchitecturePackageImpl;

import ConnectorGenerator.Feature.FeaturePackage;

import ConnectorGenerator.Feature.impl.FeaturePackageImpl;

import ConnectorGenerator.Signature.SignaturePackage;

import ConnectorGenerator.Signature.impl.SignaturePackageImpl;

import ConnectorGenerator.impl.ConnectorGeneratorPackageImpl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class DRDPackageImpl extends EPackageImpl implements DRDPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass dockEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass dockCapabilityEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass connectorEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass connectorEndpointEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass componentEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass interfaceEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass featureInSetEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass featureOrEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass featureRequirementEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass featureAndEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass allocationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass componentAllocationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass drdDocumentEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum interfaceKindEEnum = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see ConnectorGenerator.DRD.DRDPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private DRDPackageImpl() {
		super(eNS_URI, DRDFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link DRDPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static DRDPackage init() {
		if (isInited) return (DRDPackage)EPackage.Registry.INSTANCE.getEPackage(DRDPackage.eNS_URI);

		// Obtain or create and register package
		DRDPackageImpl theDRDPackage = (DRDPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DRDPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DRDPackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		ConnectorGeneratorPackageImpl theConnectorGeneratorPackage = (ConnectorGeneratorPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI) instanceof ConnectorGeneratorPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI) : ConnectorGeneratorPackage.eINSTANCE);
		AuxiliaryPackageImpl theAuxiliaryPackage = (AuxiliaryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AuxiliaryPackage.eNS_URI) instanceof AuxiliaryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AuxiliaryPackage.eNS_URI) : AuxiliaryPackage.eINSTANCE);
		CommunicationStylePackageImpl theCommunicationStylePackage = (CommunicationStylePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI) instanceof CommunicationStylePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI) : CommunicationStylePackage.eINSTANCE);
		SignaturePackageImpl theSignaturePackage = (SignaturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SignaturePackage.eNS_URI) instanceof SignaturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SignaturePackage.eNS_URI) : SignaturePackage.eINSTANCE);
		FeaturePackageImpl theFeaturePackage = (FeaturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI) instanceof FeaturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI) : FeaturePackage.eINSTANCE);
		ConnectorArchitecturePackageImpl theConnectorArchitecturePackage = (ConnectorArchitecturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConnectorArchitecturePackage.eNS_URI) instanceof ConnectorArchitecturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConnectorArchitecturePackage.eNS_URI) : ConnectorArchitecturePackage.eINSTANCE);
		ElementArchitecturePackageImpl theElementArchitecturePackage = (ElementArchitecturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ElementArchitecturePackage.eNS_URI) instanceof ElementArchitecturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ElementArchitecturePackage.eNS_URI) : ElementArchitecturePackage.eINSTANCE);

		// Create package meta-data objects
		theDRDPackage.createPackageContents();
		theConnectorGeneratorPackage.createPackageContents();
		theAuxiliaryPackage.createPackageContents();
		theCommunicationStylePackage.createPackageContents();
		theSignaturePackage.createPackageContents();
		theFeaturePackage.createPackageContents();
		theConnectorArchitecturePackage.createPackageContents();
		theElementArchitecturePackage.createPackageContents();

		// Initialize created meta-data
		theDRDPackage.initializePackageContents();
		theConnectorGeneratorPackage.initializePackageContents();
		theAuxiliaryPackage.initializePackageContents();
		theCommunicationStylePackage.initializePackageContents();
		theSignaturePackage.initializePackageContents();
		theFeaturePackage.initializePackageContents();
		theConnectorArchitecturePackage.initializePackageContents();
		theElementArchitecturePackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theDRDPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(DRDPackage.eNS_URI, theDRDPackage);
		return theDRDPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getDock() {
		return dockEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getDock_Name() {
		return (EAttribute)dockEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDock_Capabilities() {
		return (EReference)dockEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getDockCapability() {
		return dockCapabilityEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getDockCapability_Name() {
		return (EAttribute)dockCapabilityEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getDockCapability_Value() {
		return (EAttribute)dockCapabilityEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getConnector() {
		return connectorEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getConnector_CommunicationStyle() {
		return (EReference)connectorEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getConnector_Endpoints() {
		return (EReference)connectorEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getConnector_FeatureRequirements() {
		return (EReference)connectorEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getConnector_Name() {
		return (EAttribute)connectorEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getConnectorEndpoint() {
		return connectorEndpointEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getConnectorEndpoint_Interface() {
		return (EReference)connectorEndpointEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getConnectorEndpoint_Role() {
		return (EReference)connectorEndpointEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getComponent() {
		return componentEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getComponent_Interfaces() {
		return (EReference)componentEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getComponent_Name() {
		return (EAttribute)componentEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getInterface() {
		return interfaceEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInterface_Name() {
		return (EAttribute)interfaceEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInterface_Signature() {
		return (EReference)interfaceEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInterface_Kind() {
		return (EAttribute)interfaceEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getFeatureInSet() {
		return featureInSetEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getFeatureInSet_FeatureName() {
		return (EAttribute)featureInSetEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getFeatureInSet_Endpoint() {
		return (EReference)featureInSetEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getFeatureInSet_Values() {
		return (EReference)featureInSetEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getFeatureOr() {
		return featureOrEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getFeatureOr_Requirements() {
		return (EReference)featureOrEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getFeatureRequirement() {
		return featureRequirementEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getFeatureAnd() {
		return featureAndEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getFeatureAnd_Requirements() {
		return (EReference)featureAndEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getAllocation() {
		return allocationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getAllocation_Allocations() {
		return (EReference)allocationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getComponentAllocation() {
		return componentAllocationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getComponentAllocation_Component() {
		return (EReference)componentAllocationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getComponentAllocation_Dock() {
		return (EReference)componentAllocationEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getDRDDocument() {
		return drdDocumentEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDRDDocument_CommunicationStyles() {
		return (EReference)drdDocumentEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDRDDocument_Docks() {
		return (EReference)drdDocumentEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDRDDocument_Components() {
		return (EReference)drdDocumentEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDRDDocument_Allocations() {
		return (EReference)drdDocumentEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDRDDocument_Connectors() {
		return (EReference)drdDocumentEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDRDDocument_Signatures() {
		return (EReference)drdDocumentEClass.getEStructuralFeatures().get(5);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getInterfaceKind() {
		return interfaceKindEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public DRDFactory getDRDFactory() {
		return (DRDFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		dockEClass = createEClass(DOCK);
		createEAttribute(dockEClass, DOCK__NAME);
		createEReference(dockEClass, DOCK__CAPABILITIES);

		dockCapabilityEClass = createEClass(DOCK_CAPABILITY);
		createEAttribute(dockCapabilityEClass, DOCK_CAPABILITY__NAME);
		createEAttribute(dockCapabilityEClass, DOCK_CAPABILITY__VALUE);

		connectorEClass = createEClass(CONNECTOR);
		createEReference(connectorEClass, CONNECTOR__COMMUNICATION_STYLE);
		createEReference(connectorEClass, CONNECTOR__ENDPOINTS);
		createEReference(connectorEClass, CONNECTOR__FEATURE_REQUIREMENTS);
		createEAttribute(connectorEClass, CONNECTOR__NAME);

		connectorEndpointEClass = createEClass(CONNECTOR_ENDPOINT);
		createEReference(connectorEndpointEClass, CONNECTOR_ENDPOINT__INTERFACE);
		createEReference(connectorEndpointEClass, CONNECTOR_ENDPOINT__ROLE);

		componentEClass = createEClass(COMPONENT);
		createEReference(componentEClass, COMPONENT__INTERFACES);
		createEAttribute(componentEClass, COMPONENT__NAME);

		interfaceEClass = createEClass(INTERFACE);
		createEAttribute(interfaceEClass, INTERFACE__NAME);
		createEReference(interfaceEClass, INTERFACE__SIGNATURE);
		createEAttribute(interfaceEClass, INTERFACE__KIND);

		featureInSetEClass = createEClass(FEATURE_IN_SET);
		createEAttribute(featureInSetEClass, FEATURE_IN_SET__FEATURE_NAME);
		createEReference(featureInSetEClass, FEATURE_IN_SET__ENDPOINT);
		createEReference(featureInSetEClass, FEATURE_IN_SET__VALUES);

		featureOrEClass = createEClass(FEATURE_OR);
		createEReference(featureOrEClass, FEATURE_OR__REQUIREMENTS);

		featureRequirementEClass = createEClass(FEATURE_REQUIREMENT);

		featureAndEClass = createEClass(FEATURE_AND);
		createEReference(featureAndEClass, FEATURE_AND__REQUIREMENTS);

		allocationEClass = createEClass(ALLOCATION);
		createEReference(allocationEClass, ALLOCATION__ALLOCATIONS);

		componentAllocationEClass = createEClass(COMPONENT_ALLOCATION);
		createEReference(componentAllocationEClass, COMPONENT_ALLOCATION__COMPONENT);
		createEReference(componentAllocationEClass, COMPONENT_ALLOCATION__DOCK);

		drdDocumentEClass = createEClass(DRD_DOCUMENT);
		createEReference(drdDocumentEClass, DRD_DOCUMENT__COMMUNICATION_STYLES);
		createEReference(drdDocumentEClass, DRD_DOCUMENT__DOCKS);
		createEReference(drdDocumentEClass, DRD_DOCUMENT__COMPONENTS);
		createEReference(drdDocumentEClass, DRD_DOCUMENT__ALLOCATIONS);
		createEReference(drdDocumentEClass, DRD_DOCUMENT__CONNECTORS);
		createEReference(drdDocumentEClass, DRD_DOCUMENT__SIGNATURES);

		// Create enums
		interfaceKindEEnum = createEEnum(INTERFACE_KIND);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		AuxiliaryPackage theAuxiliaryPackage = (AuxiliaryPackage)EPackage.Registry.INSTANCE.getEPackage(AuxiliaryPackage.eNS_URI);
		CommunicationStylePackage theCommunicationStylePackage = (CommunicationStylePackage)EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI);
		SignaturePackage theSignaturePackage = (SignaturePackage)EPackage.Registry.INSTANCE.getEPackage(SignaturePackage.eNS_URI);
		FeaturePackage theFeaturePackage = (FeaturePackage)EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI);
		ConnectorGeneratorPackage theConnectorGeneratorPackage = (ConnectorGeneratorPackage)EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		dockEClass.getESuperTypes().add(theAuxiliaryPackage.getFirstClassEntity());
		connectorEClass.getESuperTypes().add(theAuxiliaryPackage.getFirstClassEntity());
		componentEClass.getESuperTypes().add(theAuxiliaryPackage.getFirstClassEntity());
		featureInSetEClass.getESuperTypes().add(this.getFeatureRequirement());
		featureOrEClass.getESuperTypes().add(this.getFeatureRequirement());
		featureAndEClass.getESuperTypes().add(this.getFeatureRequirement());
		allocationEClass.getESuperTypes().add(theAuxiliaryPackage.getFirstClassEntity());
		drdDocumentEClass.getESuperTypes().add(theConnectorGeneratorPackage.getConnectorSpecification());

		// Initialize classes and features; add operations and parameters
		initEClass(dockEClass, Dock.class, "Dock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getDock_Name(), ecorePackage.getEString(), "name", null, 1, 1, Dock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getDock_Capabilities(), this.getDockCapability(), null, "capabilities", null, 0, -1, Dock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(dockCapabilityEClass, DockCapability.class, "DockCapability", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getDockCapability_Name(), ecorePackage.getEString(), "name", null, 1, 1, DockCapability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getDockCapability_Value(), ecorePackage.getEString(), "value", null, 1, 1, DockCapability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(connectorEClass, Connector.class, "Connector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getConnector_CommunicationStyle(), theCommunicationStylePackage.getCommunicationStyle(), null, "communicationStyle", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getConnector_Endpoints(), this.getConnectorEndpoint(), null, "endpoints", null, 0, -1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getConnector_FeatureRequirements(), this.getFeatureRequirement(), null, "featureRequirements", null, 1, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getConnector_Name(), ecorePackage.getEString(), "name", null, 1, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(connectorEndpointEClass, ConnectorEndpoint.class, "ConnectorEndpoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getConnectorEndpoint_Interface(), this.getInterface(), null, "interface", null, 1, 1, ConnectorEndpoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getConnectorEndpoint_Role(), theCommunicationStylePackage.getRole(), null, "role", null, 1, 1, ConnectorEndpoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getComponent_Interfaces(), this.getInterface(), null, "interfaces", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getComponent_Name(), ecorePackage.getEString(), "name", null, 1, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(interfaceEClass, Interface.class, "Interface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getInterface_Name(), ecorePackage.getEString(), "name", null, 1, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInterface_Signature(), theSignaturePackage.getSignature(), null, "signature", null, 1, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInterface_Kind(), this.getInterfaceKind(), "kind", null, 1, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(featureInSetEClass, FeatureInSet.class, "FeatureInSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getFeatureInSet_FeatureName(), ecorePackage.getEString(), "featureName", null, 1, 1, FeatureInSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getFeatureInSet_Endpoint(), this.getConnectorEndpoint(), null, "endpoint", null, 0, 1, FeatureInSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getFeatureInSet_Values(), theFeaturePackage.getFeatureTerm(), null, "values", null, 0, -1, FeatureInSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(featureOrEClass, FeatureOr.class, "FeatureOr", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getFeatureOr_Requirements(), this.getFeatureRequirement(), null, "requirements", null, 0, -1, FeatureOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(featureRequirementEClass, FeatureRequirement.class, "FeatureRequirement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(featureAndEClass, FeatureAnd.class, "FeatureAnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getFeatureAnd_Requirements(), this.getFeatureRequirement(), null, "requirements", null, 0, -1, FeatureAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(allocationEClass, Allocation.class, "Allocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getAllocation_Allocations(), this.getComponentAllocation(), null, "allocations", null, 0, -1, Allocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(componentAllocationEClass, ComponentAllocation.class, "ComponentAllocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getComponentAllocation_Component(), this.getComponent(), null, "component", null, 1, 1, ComponentAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getComponentAllocation_Dock(), this.getDock(), null, "dock", null, 1, 1, ComponentAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(drdDocumentEClass, DRDDocument.class, "DRDDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getDRDDocument_CommunicationStyles(), theCommunicationStylePackage.getCommunicationStyle(), null, "communicationStyles", null, 0, -1, DRDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getDRDDocument_Docks(), this.getDock(), null, "docks", null, 0, -1, DRDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getDRDDocument_Components(), this.getComponent(), null, "components", null, 0, -1, DRDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getDRDDocument_Allocations(), this.getAllocation(), null, "allocations", null, 0, -1, DRDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getDRDDocument_Connectors(), this.getConnector(), null, "connectors", null, 0, -1, DRDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getDRDDocument_Signatures(), theSignaturePackage.getSignature(), null, "signatures", null, 0, -1, DRDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		// Initialize enums and add enum literals
		initEEnum(interfaceKindEEnum, InterfaceKind.class, "InterfaceKind");
		addEEnumLiteral(interfaceKindEEnum, InterfaceKind.IK_PROVIDED);
		addEEnumLiteral(interfaceKindEEnum, InterfaceKind.IK_REQUIRED);

		// Create annotations
		// Ecore
		createEcoreAnnotations();
		// OCL
		createOCLAnnotations();
	}

	/**
	 * Initializes the annotations for <b>Ecore</b>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected void createEcoreAnnotations() {
		String source = "Ecore";		
		addAnnotation
		  (interfaceEClass, 
		   source, 
		   new String[] {
			 "constraints", "noSignatureVariables"
		   });	
	}

	/**
	 * Initializes the annotations for <b>OCL</b>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected void createOCLAnnotations() {
		String source = "OCL";			
		addAnnotation
		  (interfaceEClass, 
		   source, 
		   new String[] {
			 "noSignatureVariables", "self.signature.oclIsTypeOf(SignatureTerm)"
		   });
	}

} //DRDPackageImpl
